import Home from "../containers/home";
import Login from "../containers/login";
import NotFound from "../containers/not-found";
import LayoutContainer from "../components/layout";
import Product from "../containers/product";
import User from "../containers/user";
import Admin from "../containers/admin";

export default [
  {
    path: "/",
    exact: true,
    component: Home,
  },
  {
    path: "/login",
    exact: true,
    component: Login,
  },
  {
    path: "/backend",
    component: LayoutContainer,
    routes: [
      {
        path: "/backend/product",
        exact: true,
        component: Product,
      },
      {
        path: "/backend/user",
        exact: true,
        component: User,
      },
      {
        path: "/backend/admin",
        exact: true,
        component: Admin,
      },
    ],
  },
  {
    path: "*",
    component: NotFound,
  },
];
